package net.starwifi.duobao.repository;

import net.starwifi.duobao.entity.GglWinning;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

/**
 * Created by Administrator on 2015/11/24.
 */
public interface GglWinningRepository extends Repository<GglWinning,Long> {

    @Modifying
    @Query(value = "update net.starwifi.duobao.entity.GglWinning o set o.status=?2 where o.id=?1")
    public int OnStatus(Long id,int status);
}
